﻿@using Furion.Models
@model CreatePortfolioViewModel

<script type="text/javascript">
    $(document).ready(function () {
        Home.createPortfolioComboBox();      
    });

</script>
<style>
/*.custom-combobox-input {
width: 254px;*/
}
</style>

<script id="errorTemplate" type="text/x-kendo-template">
    <div class="wrong-pass">#= message #</div>
</script>
<div style="background-color:gray;height:22px;" id="portfolioDetails">PortFolio Details</div>
<span id="notification"></span>
<div id="dialog" >
        <table style="width: 100%; border: 0px;" cellpadding="3" cellspacing="0">
            <tr >
                <td>PortFolio Details</td>
                <td>&nbsp;</td>
            </tr>
        <tr>
            <td>@Html.Label("Type")</td>
            <td>@Html.CheckBoxFor(m => m.portfolioCheck, new { id = Model.PortfolioType,@checked = Model.portfolioCheck})
                @Html.Label("Sub Portfolio")
                
            </td>
        </tr> 
        <tr>
            <td>@Html.Label("Name")</td>
            <td>@Html.TextBoxFor(m=>m.Name, new { style="width:254px;" })
            </td>
        </tr>
            <tr>
                <td>@Html.Label("Code")</td>
                <td>@Html.TextBoxFor(m => m.Code, new { style = "width:254px;" })
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Currency")</td>
                <td>@Html.DropDownListFor(t => t.Currency, Model.CurrencyList, "Select", new { style = "width:254px;" })
                
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Country")</td>
                <td>@Html.DropDownListFor(t => t.Country, Model.CountryList, "Select", new { style = "width:254px;" })
               
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Fund Manager")</td>
                <td>@Html.DropDownListFor(t => t.FundManager, Model.FundManagerList, "Select", new { style = "width:254px;" })
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Asset Class")</td>
                <td>@Html.DropDownListFor(t => t.AssetClass, Model.AssetClassList, "Select", new { style = "width:254px;" })
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Investment Desk")</td>
                <td>@Html.DropDownListFor(t => t.InvestmentDesk, Model.InvestmentDeskList, "Select", new { style = "width:254px;" })
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Data Load Type")</td>
                <td>@Html.DropDownListFor(t => t.DataLoadType, Model.DataLoadTypeList, "Select", new { style = "width:254px;" })
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Output Target")</td>
                <td>@Html.TextBoxFor(m => m.OutputTarget, new { style = "width:254px;" })
                </td>
            </tr>
            <tr>
                <td>@Html.Label("Portfolio Start Date")</td>
                <td><input id="startDate" value='@Model.StartDate' style="width:254px;" /></td>
            </tr>
            <tr>
                <td>@Html.Label("BenchMark")</td>
                <td>
                    @Html.DropDownListFor(t => t.Benchmark, Model.BenchmarkList, "Select", new { style = "width:254px;" })
            </td>
        </tr>
            <tr>
                <td>@Html.Label("Benchmark Start Date")</td>
                <td><input id="benchmarkDate" value='@Model.BenchmarkDate' style="width:254px;" />
                </td>
            </tr>
        <tr>
            <td style="text-align: center;">
                <input id="createPortfolio-create" onclick="Home.createPortFolio();" type="button" value="Submit" />
            </td>
            <td>
                <input id="btnSubmit" type="button" onclick="Home.onCancelClick();" value="Close" />
            </td>
        </tr>
    </table>

</div>

